package com.bRoom.service;

import com.bRoom.common.ServerResponse;
import com.bRoom.pojo.Room;
import com.bRoom.vo.RoomDetailVo;
import com.github.pagehelper.PageInfo;

public interface IRoomService {

    ServerResponse<Room> addRoom(Room room);

    ServerResponse<Room> updateRoom(Room room);

    ServerResponse stopRoom(Integer roomId);

    ServerResponse checkOutRoom(Integer roomId);

    ServerResponse<RoomDetailVo> roomDetail(Integer roomId);

    ServerResponse<PageInfo> roomList(int pageNum,int pageSize);

    ServerResponse<PageInfo> searchRoom(String roomName,int pageNum,int pageSize);
}
